package com.hl.card.common.remote.creditCard;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 信用卡订单
 * </p>
 *
 * @author coole
 * @since 2018-11-23
 */
@TableName("credit_card_order")
public class CreditCardOrder extends Model<CreditCardOrder> {

    private static final long serialVersionUID = 1L;

    /**
     * 记录自带id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 订单号
     */
    private String orderid;
    /**
     * 申请完成标识 P：审核中 D：申请未成功
     */
    private String applyCompleted;
    /**
     * 审核结果标识 P： 审批通过 D：审批失败
     */
    private String applicationStatus;
    /**
     * 已寄出标识  P：已寄出 D：未寄出
     */
    private String mailed;
    /**
     * 激活成功标识 P：已激活 D：未激活
     */
    private String activated;
    /**
     * 首刷标识 P：已首刷 D：未首刷
     */
    private String firstUsed;
    private String barCode;
    /**
     * 用户手机号
     */
    private String phone;
    /**
     * public order 里面的 order_code
     */
    @TableField("order_code")
    private String orderCode;
    @TableField("bank_type")
    private String bankType;
    /**
     * 订单最终状态
     */
    private String currentStatus;
    private Date createTime;
    private Date updateTime;
    private String userid;
    /**
     * 邀请人的userid
     */
    @TableField("parent_userid")
    private String parentUserid;
    /**
     * 上级的上级
     */
    @TableField("root_userid")
    private String rootUserid;
    /**
     * 上级的邀请码
     */
    private String regCode;
    /**
     * 订单状态 0,新建订单本地已创建，1,确认已在平安完成注册。 已申请待审核。2，审核通过，-2 审核未通过，3已寄出，4 已激活，5已首刷,-1 无效订单
     */
    private Integer status;
    /**
     * 预留字段
     */
    private String addvar;
    /**
     * 信用卡激活奖励，0未奖励，1已奖励成功，-1 奖励失败
     */
    private Integer reward1;
    /**
     * 信用卡首刷奖励，0为奖励，1奖励成功，-1奖励失败
     */
    private Integer reward2;
    @TableField("user_name")
    private String userName;
    /**
     * 本人奖励
     */
    @TableField("userid_reward")
    private Integer useridReward;
    /**
     * 推荐人奖励
     */
    @TableField("parent_userid_reward")
    private Integer parentUseridReward;
    /**
     * 上级的上级奖励
     */
    @TableField("root_userid_reward")
    private Integer rootUseridReward;
    /**
     * 币种
     */
    private String currency;
    /**
     * 是否新卡订单,1 新户， 0旧户
     */
    private Integer isNew;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getOrderid() {
        return orderid;
    }

    public void setOrderid(String orderid) {
        this.orderid = orderid;
    }

    public String getApplyCompleted() {
        return applyCompleted;
    }

    public void setApplyCompleted(String applyCompleted) {
        this.applyCompleted = applyCompleted;
    }

    public String getApplicationStatus() {
        return applicationStatus;
    }

    public void setApplicationStatus(String applicationStatus) {
        this.applicationStatus = applicationStatus;
    }

    public String getMailed() {
        return mailed;
    }

    public void setMailed(String mailed) {
        this.mailed = mailed;
    }

    public String getActivated() {
        return activated;
    }

    public void setActivated(String activated) {
        this.activated = activated;
    }

    public String getFirstUsed() {
        return firstUsed;
    }

    public void setFirstUsed(String firstUsed) {
        this.firstUsed = firstUsed;
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getBankType() {
        return bankType;
    }

    public void setBankType(String bankType) {
        this.bankType = bankType;
    }

    public String getCurrentStatus() {
        return currentStatus;
    }

    public void setCurrentStatus(String currentStatus) {
        this.currentStatus = currentStatus;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getParentUserid() {
        return parentUserid;
    }

    public void setParentUserid(String parentUserid) {
        this.parentUserid = parentUserid;
    }

    public String getRootUserid() {
        return rootUserid;
    }

    public void setRootUserid(String rootUserid) {
        this.rootUserid = rootUserid;
    }

    public String getRegCode() {
        return regCode;
    }

    public void setRegCode(String regCode) {
        this.regCode = regCode;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getAddvar() {
        return addvar;
    }

    public void setAddvar(String addvar) {
        this.addvar = addvar;
    }

    public Integer getReward1() {
        return reward1;
    }

    public void setReward1(Integer reward1) {
        this.reward1 = reward1;
    }

    public Integer getReward2() {
        return reward2;
    }

    public void setReward2(Integer reward2) {
        this.reward2 = reward2;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getUseridReward() {
        return useridReward;
    }

    public void setUseridReward(Integer useridReward) {
        this.useridReward = useridReward;
    }

    public Integer getParentUseridReward() {
        return parentUseridReward;
    }

    public void setParentUseridReward(Integer parentUseridReward) {
        this.parentUseridReward = parentUseridReward;
    }

    public Integer getRootUseridReward() {
        return rootUseridReward;
    }

    public void setRootUseridReward(Integer rootUseridReward) {
        this.rootUseridReward = rootUseridReward;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public Integer getIsNew() {
        return isNew;
    }

    public void setIsNew(Integer isNew) {
        this.isNew = isNew;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "CreditCardOrder{" +
        ", id=" + id +
        ", orderid=" + orderid +
        ", applyCompleted=" + applyCompleted +
        ", applicationStatus=" + applicationStatus +
        ", mailed=" + mailed +
        ", activated=" + activated +
        ", firstUsed=" + firstUsed +
        ", barCode=" + barCode +
        ", phone=" + phone +
        ", orderCode=" + orderCode +
        ", bankType=" + bankType +
        ", currentStatus=" + currentStatus +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", userid=" + userid +
        ", parentUserid=" + parentUserid +
        ", rootUserid=" + rootUserid +
        ", regCode=" + regCode +
        ", status=" + status +
        ", addvar=" + addvar +
        ", reward1=" + reward1 +
        ", reward2=" + reward2 +
        ", userName=" + userName +
        ", useridReward=" + useridReward +
        ", parentUseridReward=" + parentUseridReward +
        ", rootUseridReward=" + rootUseridReward +
        ", currency=" + currency +
        ", isNew=" + isNew +
        "}";
    }
}
